import instance from "@/config/request"

export const fenlei=async(canshu)=>{
    return await instance.post('/article/findByUserId',canshu)
}

export const savearticle=async(id)=>{
    return await instance.get('/article/chaid/'+id)
}

export const deletearticle=async(id)=>{
    return await instance.get('/article/deleted/'+id)
}

export const jiarticle=async(canshu)=>{
    return await instance.post('/article/zengarticle',canshu)
}

export const updatearticle=async(canshu)=>{
    return await instance.post('/article/gaiarticle',canshu)
}

export const export01=async(id)=>{
    return  await instance.post('/article/export/'+id,{},{ responseType: 'blob' });
}